package com.chenglu.android.common.base.bean;


import com.chenglu.android.common.base.BaseBean;

/**
 *  @author lyj
 *  @Created by Copyright © 2023 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *  @Description：eventBus
 */

public class Event<T> extends BaseBean {

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    /**
     * 事件
     */
    private String action;
    /**
     * 事件附带数据
     */
    private T data;

    public Event(String action) {
        this.action = action;
    }

    public Event(String action, T data) {
        this.action = action;
        this.data = data;
    }

}
